package com.fd.staticmethod;

public class Student {
    private double score;
    public static void printTotalScore() {
        System.out.println("100");
        System.out.println("100");
        System.out.println("100");
    }

    // 实例方法，没有static修饰，属于对象所有。
    public void printAverageScore() {
        System.out.println(score>=60 ? "通过" : "未通过");
    }

    public void setScore(double score) {
        this.score = score;
    }
}
